package habitant;


import java.util.ArrayList;
import java.util.Collection;

import ressourceImpl.QuantiteRessource;
import ressourceImpl.RessourceImpl;

/**
 * 
 * @modelguid {B6E5C1DA-92F7-4875-A4CA-BDDEA74503D0}
 */
public class Habitant {
	/**
	 * 
	 * @modelguid {E6E63CE7-FB23-48E2-A916-D60866A814B1}
	 */
	private int _moral;

	/**
	 * 
	 * @modelguid {53C96E9D-8C2E-4074-AF74-9728CE9F5EFA}
	 */
	private Collection<QuantiteRessource> _entretien;

	public Habitant(int mor, Collection<QuantiteRessource> entretien){
		this.set_entretien(entretien);
		this.set_moral(mor);
	}
	
	/** @modelguid {445D510A-9307-47BD-8B41-6D0BEFB2EC5B} */
	public int get_moral() {
		/*Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5}*/
		
		return _moral;
		/*End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5}*/
	}

	/** @modelguid {A6CA56D2-65C4-4BAC-8AD2-74AFF9A03DD4} */
	public void set_moral(int a_moral) {
		/*Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5}*/
		_moral = a_moral;
		/*End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5}*/
	}

	/** @modelguid {A6177A75-6ECD-4BEE-884E-C21540D9E195} */
	public Collection<QuantiteRessource> get_entretien() {
		/*Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5}*/
		
		return _entretien;
		/*End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5}*/
	}

	/** @modelguid {404ECFAB-5456-4BC3-9811-3666BAC90D42} */
	public void set_entretien(Collection<QuantiteRessource> a_entretien) {
		/*Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5}*/
		_entretien = new ArrayList<QuantiteRessource>(a_entretien);
		/*End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5}*/
	}

}

